<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/7/24
 * Time: 11:25
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\common\business;


use app\common\lib\ArrClass;
use think\Exception;

class Upload extends BusBase
{
    /**
     * @return mixed
     * @throws Exception
     * @throws \ReflectionException
     */
    public static function upload(){
        $classStat = ArrClass::image();
        $classObj = ArrClass::initClass('image',$classStat,[],true);
        try {
            $result = $classObj->upload();
        }catch (\Exception $e){
            throw new Exception($e->getMessage());
        }
        return $result;
    }
}